﻿#region 版权信息
// ------------------------------------------------------------------------------
// Copyright: (c) 2029  成都A+有限公司 - Amm
// 项目名称：Amm.Services
// 文件名称：LoginInputDto.cs
// 创建时间：2020100618:23
// 更改时间：2020100618:23
//  ------------------------------------------------------------------------------
#endregion

using System.ComponentModel.DataAnnotations;

namespace Colorful.Furniture.PermissionManagement
{
    /// <summary>
    ///  登录请求体
    /// </summary>
    public class LoginInputDto
    {
        /// <summary>
        ///  用户名
        /// </summary>
        [MaxLength(30, ErrorMessage = "用户名限输入30位数")]
        [Required(ErrorMessage = "请输入用户名")]
        public string UserName { get; set; }

        /// <summary>
        ///  密码
        /// </summary>
        [MaxLength(30, ErrorMessage = "密码限输入30位数")]
        [Required(ErrorMessage = "请输入密码")]
        public string Password { get; set; }

        /// <summary>
        ///  验证码
        /// </summary>
        [MaxLength(8, ErrorMessage = "验证码限输入8位数")]
        [Required(ErrorMessage = "请输入验证码")]
        public string VerifyCode { get; set; }

        /// <summary>
        ///  验证码Id 
        /// </summary>
        public string VerifyCodeId { get; set; }
    }
}